package com.tanhua.domain.db;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @Author: Sword Goddess
 * @Date: 2021/9/18
 * @explain: 账号状态表
 */
@TableName("tb_user_status")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class UserStatus implements Serializable {
    @TableId(type = IdType.AUTO)
    private Long id; // ID
    private Long userId; // 用户ID
    private Integer freezingTime; // 冻结时间，1为冻结3天，2为冻结7天，3为永久冻结
    private Integer freezingRange; // 冻结范围，1为冻结登录，2为冻结发言，3为冻结发布动态
    private String reasonsForFreezing; // 冻结原因
    private String frozenRemarks; // 冻结备注
    private String reasonsForThawing; // 解冻原因
    private Long created; // 禁封开始时间
    private Long thawingTime; // 解冻时间
    private Integer status; // 1为正常，2为冻结
}
